package com.lingnan.wanxiangxinxun.entity.dto;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class News_addDTO implements Serializable {

    private Integer id; //新闻id
    @NotNull(message = "参数错误-新闻标题不能为空")
    private String title; //新闻标题
    private String frontCover; //新闻封面
    private String content; //新闻内容

    @NotNull(message = "参数错误-新闻分类id不能为空")
    private Integer categoryId; //新闻分类id
    @NotNull(message = "参数错误-作者id不能为空")
    private Integer authorId; //作者id


}
